import pageRouters from './index'
const routes = [
    {
        path: '/',
        redirect: () => {
            return '/login'
        }
    },
    {
        path: '/index',
        name: 'index',
        component: () => import('@/views/main'),
        children: pageRouters,
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login')
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/views/system/404')
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: () => {
            return '/404'
        }
    }
];
export default routes;